﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using secret_server.Models;

namespace secret_server.Data
{
    public class SecretDbContext : DbContext
    {
        public SecretDbContext(DbContextOptions<SecretDbContext> options)
            : base(options)
        {
        }

        public DbSet<Player> Players { get; set; }
        public DbSet<World> Worlds { get; set; }
        public DbSet<Character> Characters { get; set; }
        public DbSet<WorldScene> WorldScenes { get; set; }
        public DbSet<CharacterScene> CharacterScenes { get; set; }
        public DbSet<Couple> Couples { get; set; }
        public DbSet<Topic> Topices { get; set; }
        public DbSet<Round> Rounds { get; set; }

        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);
            // Customize the ASP.NET Identity model and override the defaults if needed.
            // For example, you can rename the ASP.NET Identity table names and more.
        }
    }
}
